import service from "@/utils/fetch";
const post = {
  //查询商户地址表分页
  tenantAddressPage(params) {
    return service({
      method: "get",
      params,
      url: "/api/tenantAddress/",
    });
  },

  //新增商户地址
  addTenantAddress(params) {
    return service({
      method: "post",
      data: params,
      url: "/api/tenantAddress/",
    });
  },

  //修改商户地址
  updateTenantAddress(params) {
    return service({
      method: "put",
      data: params,
      url: "/api/tenantAddress/",
    });
  },

  //删除商户地址
  deleteTenantAddress(id) {
    return service({
      method: "delete",
      data: [id],
      url: "/api/tenantAddress/",
    });
  },

  // 省市区
  getRegion(params) {
    return service({
      method: "get",
      params,
      url: "/api/region/",
    });
  },
};

export default post;
